package com.xiaomengkuan.comment.entity.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author Faraj Mujey
 * -- Creation Time: 2021-01-27 1:39 下午, File Encoding: utf8 --
 */
@Data
@ToString
@ApiModel(value = "评论")
@TableName(value = "scc_comment")
public class Comment {
    @TableId(type = IdType.ASSIGN_UUID)
    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "商品id")
    private String productId;
    private String avatar;
    private String nickname;
    @ApiModelProperty(value = "评论内容")
    private String context;
    @ApiModelProperty(value = "发布时间")
    private LocalDateTime createdTime;
    @ApiModelProperty(value = "上级评论id")
    private String baseId;
    @ApiModelProperty(value = "用户id")
    private String userId;
}
